rank of matrices using echelon form